<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<%@ Page language="vb" Inherits="_2bMatesSite.view_favourite_groups" CodeFile="view_favourite_groups.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="_Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr>
			<td class="page_title"><asp:literal id="litTitle" runat="server">Favourite Groups</asp:literal></td>
		</tr>
		<tr>
			<td class="main_table_border" vAlign="top" height="100%">
				<div class="content">			
							<asp:label id="lblNoFavGroups" runat="server" Visible="False" cssclass="main_text">You have no favourite groups.</asp:label>
							<asp:table id="tblFavGroups" runat="server" cellspacing=0 cellpadding=0 cssclass="main_text" width="100%">
								<asp:TableRow VerticalAlign="Top">
									<asp:TableCell VerticalAlign="Top">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
											<tr>
												<td vAlign="top" align="left" class="small">
													<Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager>
												</td>
											</tr>
											<tr>
												<td align="left">
													<ASP:DATAGRID id="dgFavGroups" runat="server" Width="100%" CssClass="search_results_table" AutoGenerateColumns="False"
														GridLines="None" AllowPaging="True" AllowCustomPaging="True" PagerStyle-Mode="NumericPages"
														PagerStyle-HorizontalAlign="Right" CellPadding="0" AllowSorting="True" Visible="True" showfooter="false">
														<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
														<headerstyle cssclass="search_results_header"></HeaderStyle>
														<Columns>
															<asp:TemplateColumn HeaderText="Group">
																<headerstyle height="20px" width="20%" cssclass="search_results_header"></HeaderStyle>
																<itemstyle cssclass="search_results_img" horizontalalign=center></itemstyle>
																<ItemTemplate>
																	<asp:linkbutton id=lbGroup runat="server" cssclass="main_text_bold" CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "GroupID") %>'>
																		<%# DataBinder.Eval(Container.DataItem, "Name") %>
																	</asp:linkbutton>
																	<BR>
																	<asp:hyperlink id=hlGroupImage runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "GroupImg") %>' NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "LongName") %>'>HyperLink</asp:hyperlink>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="Group Info">
																<headerstyle height="20px" width="60%" cssclass="search_results_header"></HeaderStyle>
																<itemstyle cssclass="search_results_info"></itemstyle>
																<ItemTemplate>
																	<asp:label id="lblName" runat="server" Font-Bold="True">
																		<%# DataBinder.Eval(Container.DataItem, "LongName") %>
																	</asp:label>
																	<BR>
																	<BR>
																	<asp:label id="lblModerator" runat="server" Font-Bold="True">Moderator:</asp:label>
																	<asp:label id="lblModeratorValue" runat="server">
																		<%# DataBinder.Eval(Container.DataItem, "ModeratorName") %>
																	</asp:label>
																	<br>																	
																	<asp:label id="lblCategory" runat="server" Font-Bold="True">Category:</asp:label>
																	<asp:label id="lblCategoryValue" runat="server">
																		<%# DataBinder.Eval(Container.DataItem, "Category") %>
																	</asp:label>
																	<br>
																	<asp:label id="lblAbout" runat="server" Font-Bold="True">Short Description:</asp:label>
																	<asp:label id="lblAboutValue" runat="server">
																		<pre WRAP STYLE="word-wrap:break-word;" style="margin-top:0px;"><asp:literal id=litComment runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ShortDescription") %>'></asp:literal></pre><br />
																	</asp:label>																	
																	<asp:label id="lblProfileUpdated" runat="server" Font-Bold="True">Profile Updated: </asp:label>
																	<asp:label id="lblProfileUpdatedValue" runat="server">
																		<%# DataBinder.Eval(Container.DataItem, "ProfileUpdated") %>
																	</asp:label>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="Actions">
																<headerstyle height="20px" width="20%" cssclass="search_results_header"></HeaderStyle>
																<itemstyle cssclass="user_links"></ItemStyle>
																<ItemTemplate>
																	<asp:hyperlink id="hlAddToFriends" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "JoinLink") %>' Visible='<%# DataBinder.Eval(Container.DataItem, "JoinLinkVisibility") %>' cssclass="main_text_bold">Join<br></asp:hyperlink>
																																
																	<asp:hyperlink id="hlSendMessage" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "SendMessageLink") %>' cssclass="main_text_bold">Send a Message</asp:hyperlink>
																	<br>
																	<asp:hyperlink id="hlForwardToFriend" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ForwardToFriendLink") %>' cssclass="main_text_bold">Forward to a Friend</asp:hyperlink>
																	<br>
																	<asp:hyperlink id="hlAddComment" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "AddCommentsLink") %>' cssclass="main_text_bold">Add Comments</asp:hyperlink>
																	<br>
																	<asp:hyperlink id="hlBlockUser" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "UnsubscribeLink") %>' cssclass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "UnsubscribeLinkVisibility") %>' >Unsubscribe</asp:hyperlink>
																	<asp:Label id="lblBreak" runat=server Visible='<%# DataBinder.Eval(Container.DataItem, "UnsubscribeLinkVisibility") %>'><br /></asp:label>
																	<asp:linkbutton id="hlRemove" runat="server" CommandName="Remove" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "GroupID") %>' cssclass="main_text_bold">Remove</asp:linkbutton>
																</ItemTemplate>
															</asp:TemplateColumn>
														</Columns>
														<PagerStyle VerticalAlign="Top" Visible="False" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
													</ASP:DATAGRID>
												</td>
											</tr>
											<tr>
												<td vAlign="top" align="left" class="small"><Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager>
												</td>
											</tr>
										</table>
									</asp:TableCell>
								</asp:TableRow>
							</asp:table>
				</div>		
			</td>
		</tr>
	</table>
</form>